package com.pac.weixin.util;

import org.springframework.beans.factory.annotation.Autowired;

import com.kuanrf.commons.weixin.api.help.WxMsgRouter;

/**
 * 初始化微信路由规则
 * 
 * @author lujun.chen
 * @version [版本号, 2015年4月3日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class WxRouterInit {

	@Autowired
	private  WxMsgRouter wxMsgRouter;
	
	@Autowired
	private WxReceiveMHandler wxReceiveMHandler;
	
	@Autowired
	private WxReceiveEHandler wxReceiveEHandler;
	
	public void init()
	{
		wxMsgRouter.msgRule(wxReceiveMHandler);
		wxMsgRouter.eventRule(wxReceiveEHandler);
	}
	
}
